import Layout from '@/layout'
const monitorRouter = {
  path: '/monitor',
  component: Layout,
  name: 'monitor',
  alwaysShow: true,
  meta: {
    type: 'S',
    roles: ['94', '9410'],
    title: '系统监控',
    icon: 'monitor'
  },
  children: [{
    path: 'online',
    component: () => import('@/views/monitor/online'),
    name: 'online',
    meta: {
      type: 'S',
      roles: ['9410'],
      title: '在线用户'
    }
  }, {
    path: 'job',
    component: () => import('@/views/monitor/job'),
    name: 'job',
    meta: {
      type: 'S',
      roles: ['9420'],
      title: '定时任务'
    }
  }, {
    path: 'joblog',
    component: () => import('@/views/monitor/job/log'),
    name: 'joblog',
    hidden: true,
    meta: {
      type: 'S',
      roles: ['9420'],
      title: '调度日志'
    }
  }, {
    path: 'server',
    component: () => import('@/views/monitor/server'),
    name: 'server',
    meta: {
      type: 'S',
      roles: ['9430'],
      title: '服务器监控'
    }
  }, {
    path: 'cache',
    component: () => import('@/views/monitor/cache'),
    name: 'cache',
    meta: {
      type: 'S',
      roles: ['9440'],
      title: '缓存监控'
    }
  }]
}
export default monitorRouter
